package src.edu.wayne.cs.csc4110.hw6.tests;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

import src.edu.wayne.cs.csc4110.hw6.implementations.FrameWorkImpl;
import src.edu.wayne.cs.csc4110.hw6.interfaces.FrameWork;
import src.edu.wayne.cs.csc4110.hw6.plugins.GamePlugin;


public class MainMethodTests {

	FrameWork myFramework; 
	
	@Before
	public void setUp() throws Exception {
		DatabaseTests dbaseFactory = new DatabaseTests();
		dbaseFactory.setUp(); 
		myFramework = FrameWorkImpl.getFrameWork();
		myFramework.setDataBase(dbaseFactory.getDataBase());

	}

	@Test
	public void test() {
		
		assertEquals(myFramework.startFrameWork(new GamePlugin()), true);
		
		myFramework.startUserSession();
		//JPanel gamePanel = new JPanel();
		//GameStatus gameStatus = null;
		
		//myFramework.setScreen(gamePanel, gameStatus, userId);
		
		//int gameId = myFramework.startGame(userId);
		
		//myFramework.saveGame(gameId);
		//myFramework.quitGame(gameId);
		
		System.out.printf("all done \n");
	}

}
